package org.xq.softcup.mq.client.util;

import java.text.MessageFormat;
import java.util.Date;

/**
 * @author admin
 */
public class LogUtil {

    private static final String LOG_TEMPLATE = "标题:{0} 时间：{1}  备注：{2}";

    public static String makeLog(String logTitle, String logContent){
        String time = DateUtil.formatDateTime(new Date());
        String log = MessageFormat.format(LOG_TEMPLATE, logTitle, time, logContent);
        return log;
    }
}
